package com.mashuai.utils.config.constants;

/**
 * @ClassName: StaticConstant
 * @Description: 静态常量, 只提供给内部使用
 */
public class StaticConstant {
    //--------多数据源
    //切换数据源的配置
    public final static String DB_SWITCH_SOURCE_DATA_NAME = "msDynamicDataSource";
    //多数据源默认的数据源名称
    public final static String DB_DEFAULT_SOURCE_DATA_NAME = "master";
    //默认实现IMsRegisterDataSource接口的bean名称，此名称很重要，指定数据源注册在该类加载完成后在进行注册
    public final static String DB_DEFAULT_GET_SOURCE_DATA_BEAN_NAME = "myDataSourceMsg";

    //--------下面三个变量仅仅针对utils.toolkit.achieve包
    //根据这三个变量，判断工具包是否能正常启用，首先msUtEnable控制工具包的bean能否正常注册到ioc容器，
    //msUtEmpty1 || msUtEmpty2 可以控制指定方法是否生效
    public static final String MS_UT_ENABLE = "msUtEnable";
    public static final String MS_UT_EMPTY1 = "msUtEmpty1";
    public static final String MS_UT_EMPTY2 = "msUtEmpty2";


    //--------msHandleBean包下的常量
    //默认的删除标记
    public static final String HANDLE_BEAN_DEF_DEL_FLAG = "deflag=0";
    //默认的业务id字段名
    public static final String HANDLE_BEAN_BIZ_ID_FIELD = "id";
    //@MsJoinTable注解带，joinField 字段值，ms.hb.tb-join-field
    public static final String HANDLE_BEAN_JOIN_FIELD = "id";

    //多个字典值，拆分标记,ms.hb.dict-split
    public static final String HANDLE_BEAN_DICT_SPLIT = ";";
    //字典值，字典名称字段,ms.hb.dict-need-field
    public static final String HANDLE_BEAN_DICT_NEED_FIELD= "label";
}
